package com.yh.aidl_server;


import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;

public class Server_service extends Service {


    IMyAidlInterface.Stub mStub = new IMyAidlInterface.Stub(){

        @Override
        public int add(int msg1, int msg2) throws RemoteException {
            return msg1+msg2;
        }
    };


    @Override
    public IBinder onBind(Intent intent) {
        return mStub;
    }
}
